Linux Base command (1) LS command
Linux Basics Command (2) CD command
Linux Basics Command (3) PWD command
Linux Basics Command (4) mkdir command
Linux Base Command (5) RM command
Linux Basics Command (6) rmdir command
Linux Basics Command (7)
Linux system
The common commands for Linux are:
echo command
Example: Echo $PATH.
Function: Displays the parameters in the command line to the standard output.
Date command
Example: Date.
Function: Displays or sets the system time, does not
The Linux file has three time attributes:
1) Mtime: file content Last modified time
2) CTime: File state changed time, such as permissions, properties were changed
3) Atime: File content is accessed time, such as cat,less, etc.
By default, LS
User-managed configuration files
User Information file:/etc/passwd
Password file:/etc/shadow
User group file:/etc/group
User group password file:/etc/gshadow
User profile:
/etc/login.defs
/etc/default/useradd
New user information
File management commands on Linux
Directory Management Commands:
Mkdir:make Directories
mkdir [OPTION] ... DIRECTORY ...
-P: Automatically create parent directory on demand;
-v:verbose, show the detailed process;
-M MODE: direct given
Rsync sometimes because the server time is wrong, you need to change the time of the file modification, you can use the Touch command to modify the file's modified time:
1 touch-c-m-t 201101110000 teadme.txt
Modified Readme.txt to January 11, 2011:00
mkdir directory name to create a directory
RmDir Empty directory name Delete an empty directory
RM FileName File name Delete one file or multiple files
RM–RF non-empty directory name deletes everything under a non-empty directory
Touch filename
file management commands on Linux
Directory Management Commands:
Mkdir:make Directories
mkdir [OPTION] ... DIRECTORY ...
-P: Automatically create parent directory on demand;
-v:verbose, show the detailed process;
-M MODE: direct given
File system architecture for Linux
Linux file system for an inverted single root tree structure
The root of the file system is "/"
File systems are strictly case-sensitive
The path uses "/" to split, in Windows using the
Current
The Linux file system is an inverted tree structure, all files or folders are contained in a root directory "/".
Linux systems are strictly case-sensitive and have a name of up to 255 characters
All valid characters except forward slash
Each
Basic commands
Uname-a-S
Hostname Display host name
To be permanently effective, edit the following file
#vim/etc/sysconfig/network
SSH remote Login
#ssh 10.1.1.54 (logged in as root)
#ssh tom@10.1.1.54 (log in as Tom)
#ssh-y 10.1.1.54
Linux touch commands are not commonly used and may be used when using make, to modify the file timestamp, or to create a new file that does not exist.
1. Command format:
touch [Options] ... File...
2. Command parameters:
Only the access time is
Editor's note: The flat of the fire for a year, the students are aware of it? Today @ Network Qin UEC students from abroad translated a good article, from the popularity of flat to the impact of the interface design, with some design tips and
There are many commands in the UNIX operating system that can be used to back up files. However, the root file system in the UNIX operating system is a relatively special file. In general, you must uninstall other file systems If you are backing up
Rename is used for naming management of files, for batch naming and support of regular expressions, rename commands exist in two different versions. One is the C language version that supports wildcards, and the other is the Perl version. Support
File system architecture for Linux
Linux file system for an inverted single root tree structure
The root of the file system is "/"
File systems are strictly case-sensitive
The path uses "/" to split, in Windows using the "\"
Current working
In a Linux system, there are three main log subsystems:
Connection time logs--executed by multiple programs, writing records to programs such as/VAR/LOG/WTMP and/var/run/utmp,login to update wtmp and utmp files so that system administrators can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.